package com.ruoyi.pingjiao.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行政班级管理对象 metaclass
 * 
 * @author 胡浩鹏
 * @date 2022-10-15
 */
public class Metaclass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行政班级id */
    private Long meataclassId;

    /** 行政班级编号 */
    @Excel(name = "行政班级编号")
    private String metaclassNo;

    /** 行政班级名称 */
    @Excel(name = "行政班级名称")
    private String metaclassName;

    /** 学院 */
    @Excel(name = "学院")
    private Long deptId;

    /** 状态 */
    private String status;

    /** 年级 */
    private String grade;

    /** 删除 */
    private String delFlag;

    /**部门对象*/
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
    })
    private SysDept dept;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Excel(name = "部门名称")
    private String deptName;

    public void setMeataclassId(Long meataclassId) 
    {
        this.meataclassId = meataclassId;
    }

    public Long getMeataclassId() 
    {
        return meataclassId;
    }
    public void setMetaclassNo(String metaclassNo) 
    {
        this.metaclassNo = metaclassNo;
    }

    public String getMetaclassNo() 
    {
        return metaclassNo;
    }
    public void setMetaclassName(String metaclassName) 
    {
        this.metaclassName = metaclassName;
    }

    public String getMetaclassName() 
    {
        return metaclassName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("meataclassId", getMeataclassId())
            .append("metaclassNo", getMetaclassNo())
            .append("metaclassName", getMetaclassName())
            .append("deptId", getDeptId())
            .append("status", getStatus())
            .append("grade", getGrade())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
